#pragma once

#include "Singleton.h"

namespace a2d
{
//------------------------------------------------------------------

	struct ResTexture
	{
		bool init = false;
		int num = 0;
		uint tex_id = 0;
		uint target = 0;
		uint width = 0;
		uint height = 0;
	};

	class AV2D_EXPORT ResourceMgr : public Singleton <ResourceMgr>
	{
	public:
		ResTexture AddImage(const std::string &filename);

		void Clear();

	private:
		std::map<std::string, ResTexture> m_img;
	};

//------------------------------------------------------------------
} // namespace a2d
